package com.education.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.education.dao.PrintDao;
import com.education.model.Print;
import com.education.service.IPrintService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by Administrator on 2017/8/9.
 *
 * @author 郭伟(新增)
 *         打印准考证的实现类(服务层)
 */

@Service
public class PrintImpl implements IPrintService {
    /**
     * 注入打印准考证数据层
     */
    @Autowired
    private PrintDao printDao;
    /**
     * 日志类型
     */

    private static Logger MYLOGGER = LogManager.getLogger(PrintImpl.class);

    /**实现根据学生id查询相关信息
     * @param stuId
     * @return
     * @throws Exception
     */

    public Print searchPrintInfo(Integer stuId) throws Exception {
        Print list = printDao.searchPrintInfo(stuId);
        return list;
    }
}
